﻿@model Susha.Models.Pages.MenuPage

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
    @Scripts.Render("/Scripts/common/user.js")
}

<h1>Меню</h1>

@foreach (Susha.Models.Category cat in Model.Categories)
{
    if(cat.GetSushiCount() > 0)
    {
        <div class="category">
            <div class="category-name">
                @cat.Name
            </div>
            @foreach (Susha.Models.Sushi sushi in cat.Sushi)
            {
                <div class="sushi" id="sushi-id-@sushi.Id" style="background-image:url('@Url.Content("~/Content/i/")@sushi.SmallPhoto')">
                    <div class="sushi-info">
                        <span class="sushi-name">
                            @sushi.Name:
                        </span>
                        <span class="sushi-name">
                            @sushi.Price грн.
                        </span>
                    </div>
                </div>
            }
        </div>
        <div class="end"></div>
    }
}
<ul id="adsf">
    <li>q</li>
</ul>